package com.feige.dao;

import com.feige.pojo.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 角色表 Mapper 接口
 * </p>
 *
 * @author feige
 * @since 2020-07-20
 */
public interface RoleMapper extends BaseMapper<Role> {

    Set<String> selectRoleNameByUserId(Long userId);

    Set<String> selectAllRoleName();

    List<Long> selectRoleIdByUserId(Long userId);
}
